<template>
  <div id="orders">
    <!-- 头部 -->
    <div class="title_div">我的订单</div>
    <!-- 订单列表 -->
    <div class="item_div" :key="index" v-for="(item, index) in dataList">
      <div class="item_top_div">
        <span>{{ item.shopName }}</span>
        <span>{{ item.status }}</span>
      </div>
      <div class="item_bottom_div">
        <div class="item_bottom_left_div">
          <img
            :key="index1"
            v-for="(url, index1) in item.imgs"
            src="../assets/orders/qqq.jpg"
            alt=""
          />
          <img src="../assets/orders/lz.png" alt="" />
          <img src="../assets/orders/lz.png" alt="" />
        </div>
        <div class="item_bottom_right_div">
          <p>¥{{ item.price }}</p>
          <p>共{{ item.num }}2件</p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dataList: [
        {
          shopName: "沃尔玛",
          status: "已取消",
          imgs: [
            require([
              "../assets/orders/lz.png",
              "../assets/orders/lz.png",
              "../assets/orders/lz.png",
              "../assets/orders/lz.png",
            ]),
          ],
          price: 66.99,
          num: 6,
        },
        {
          shopName: "大商",
          status: "已购买",
          imgs: [
            require(["../assets/orders/lz.png", "../assets/orders/lz.png"]),
          ],
          price: 36.88,
          num: 2,
        },
      ],
    };
  },
};
</script>
<style scoped>
/* 页面背景颜色 */
#orders {
  background-color: #f8f8f8;
  height: 100%;
  position: fixed;
  width: 100%;
}
.title_div {
  height: 44px;
  font-size: 16;
  color: #333333;
  background-color: white;
  line-height: 44px;
  text-align: center;
}
.item_div {
  background-color: white;
  margin-top: 16px;
  margin-left: 18px;
  margin-right: 18px;
  border-radius: 4px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 12px;
}
.item_div .item_top_div {
  height: 54px;
  line-height: 54px;
  display: flex;
  justify-content: space-between;
}
.item_div .item_top_div :nth-child(1) {
  font: size 16px;
  color: #333333;
}
.item_div .item_top_div :nth-child(2) {
  font: size 14px;
  color: #999999;
}
.item_div .item_bottom_div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
}
.item_div .item_bottom_div .item_bottom_left_div img {
  width: 36px;
  height: 36px;
  margin-left: 6px;
  margin-right: 6px;
}
.item_div .item_bottom_div .item_bottom_right_div {
  text-align: right;
}
.item_div .item_bottom_div .item_bottom_right_div :nth-child(1) {
  font-size: 14px;
  color: #e93b3b;
}
.item_div .item_bottom_div .item_bottom_right_div :nth-child(2) {
  margin-top: 6px;
  font-size: 12px;
  color: #333333;
}
</style>